package cn.edu.scau.cmi.maikejian.abstractFactory.factory;

import cn.edu.scau.cmi.maikejian.abstractFactory.domainAbstractClass.Beef;
import cn.edu.scau.cmi.maikejian.abstractFactory.domainAbstractClass.Chicken;
import cn.edu.scau.cmi.maikejian.abstractFactory.domainAbstractClass.Pork;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "Wens":
			return new WensFactory();
		case "Tianbang":
			return new TianbangFactory();
		case "Aonong":
			return new AonongFactory();
		}
		return null;

	}    
	 public abstract Pork createPork();
	 public abstract Beef createBeef();
	 public abstract Chicken createChicken();
}
